package com.qf.springboot.dto;

import io.swagger.annotations.ApiModel;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * projectName: springboot
 *
 * @author dongshihao
 * Date:2021/9/12   17:33
 * description:
 */

@ApiModel(value = "接受Air参数",description = "desc.....")  //标记swagger的其它信息
public class AirDTO {


    /**
     * 区域主键
     */
    @NotNull(message = "区域主键不能为空")
    private Integer districtId;

    /**
     * 检测时间
     */
    @NotNull(message = "时间必填项")
    private Date monitorTime;

    /**
     * pm10值
     */
    @NotNull(message = "pm10  ..............")
    @Max(value = 10,message = "应当小于1000")
    private Integer pm10;

    /**
     * pm2.5值
     */
    @NotNull(message = "pm2.5  ..............")
    @Max(value = 10,message = "应当大于10")
    private Integer pm25;

    /**
     * 检测站
     */
    @NotNull(message = "检查站不能可为空")
    private String monitoringStation;


    @Override
    public String toString() {
        return "AirDTO{" +
                "districtId=" + districtId +
                ", monitorTime=" + monitorTime +
                ", pm10=" + pm10 +
                ", pm25=" + pm25 +
                ", monitoringStation='" + monitoringStation + '\'' +
                '}';
    }

    public Integer getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Integer districtId) {
        this.districtId = districtId;
    }

    public Date getMonitorTime() {
        return monitorTime;
    }

    public void setMonitorTime(Date monitorTime) {
        this.monitorTime = monitorTime;
    }

    public Integer getPm10() {
        return pm10;
    }

    public void setPm10(Integer pm10) {
        this.pm10 = pm10;
    }

    public Integer getPm25() {
        return pm25;
    }

    public void setPm25(Integer pm25) {
        this.pm25 = pm25;
    }

    public String getMonitoringStation() {
        return monitoringStation;
    }

    public void setMonitoringStation(String monitoringStation) {
        this.monitoringStation = monitoringStation;
    }
}
